import request from '@/utils/request'

// 查询学生课堂现记录列表
export function listClassperformance(query) {
  return request({
    url: '/classperformance/classperformance/list',
    method: 'get',
    params: query
  })
}

// 查询学生课堂现记录详细
export function getClassperformance(performanceId) {
  return request({
    url: '/classperformance/classperformance/' + performanceId,
    method: 'get'
  })
}

// 新增学生课堂现记录
export function addClassperformance(data) {
  return request({
    url: '/classperformance/classperformance',
    method: 'post',
    data: data
  })
}

// 修改学生课堂现记录
export function updateClassperformance(data) {
  return request({
    url: '/classperformance/classperformance',
    method: 'put',
    data: data
  })
}

// 删除学生课堂现记录
export function delClassperformance(performanceId) {
  return request({
    url: '/classperformance/classperformance/' + performanceId,
    method: 'delete'
  })
}
